package com.quanyan.authority.init;

import com.quanyan.authority.service.MenuService;
import com.quanyan.authority.service.RoleMenuService;
import com.quanyan.authority.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import javax.naming.ldap.PagedResultsControl;

/**
 * Created by Administrator on 2016/8/5.
 */
@Component
public class RoleMenuInit implements CommandLineRunner {


    @Autowired
    private MenuService menuService;

    @Autowired
    private RoleMenuService roleMenuService;

    @Autowired
    private RoleService roleService;

    @Override
    public void run(String... strings) throws Exception {
        //roleMenuService.initRoleMenu();
        //menuService.initMenu();
        roleService.initRole();
    }
}
